coredump: Allow mmap of shinfo to fail for any HVM guest (x86 or ia64).
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 19 Mar 2007 16:55:21 +0000 (16:55 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Mon, 19 Mar 2007 16:55:21 +0000 (16:55 +0000)
Signed-off-by: Keir Fraser <keir@xensource.com>
tools/libxc/xc_core.c

index 3dcf51e131f49326ba289ff0fa7b60e647c838bb..3c1ff185a63afac123e065a3b4623587714210bc 100644 (file)
@@ -349,11 +349,7 @@ xc_domain_dumpcore_via_callback(int xc_handle,
     /* Map the shared info frame */
     live_shinfo = xc_map_foreign_range(xc_handle, domid, PAGE_SIZE,
                                        PROT_READ, info.shared_info_frame);
-    if ( !live_shinfo 
-#ifdef __ia64__
-         && !info.hvm
-#endif
-        )
+    if ( !live_shinfo && !info.hvm )
     {
         PERROR("Couldn't map live_shinfo");
         goto out;